package com.design.singleton;

/**
 * 懒汉式
 * Created by CrazyShaQiuShi on 2017/1/22.
 */
public class Singleton1 {
    public static  Singleton1 instance;
    private  Singleton1(){}
    public  static  Singleton1 getInstance(){
        if(instance==null){
            instance=new Singleton1();
        }
        return instance;
    }

}
